<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#10498A;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
	<div class="desplegable">
		<?php  $this->Form->new_menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="familiares form">
<?php echo $this->Form->create('Familiare');?>
	<fieldset>
 		<legend><?php __('Editar Familiar'); ?></legend>
 	<table>
		<tr>
			<td><?php echo $this->Form->input('estudiante_id');?></td>
			<td><?php echo $this->Form->input('primer_nombre');?></td>
		</tr>
		<tr>
			<td><?php echo $this->Form->input('segundo_nombre');?></td>
			<td><?php echo $this->Form->input('primer_apellido');?></td>
		</tr>
		<tr>
			<td><?php echo $this->Form->input('segundo_apellido');?></td>
			<td><?php echo $this->Form->input('estado_civil');?></td>
		</tr>
		<tr>
			<td><?php echo $this->Form->input('nivel_escolaridad');?></td>
			<td><?php echo $this->Form->input('leer',array('label'=>'Sabe leer'));?></td>
		</tr>
		<tr>
			<td><?php echo $this->Form->input('escribir',array('label'=>'Sabe escribir'));?></td>
			<td><?php echo $this->Form->input('telefono');?></td>
		</tr>
		<tr>
			<td colspan="2"><?php echo $this->Form->input('ocupacion');?></td>											
		</tr>
		
		<?php $style = ($this->Form->value('Familiare.parentesco')=="Otro")?"style='display:block'":"style='display:none'"; ?>
		<tr>
			<td><?php echo $this->Form->input('parentesco', array('id'=>'parentesco'));?></td>
			<td><div id="otro_parentesco" <?php echo $style?>><?php echo $this->Form->input('otro_parentesco');?></div></td>
		</tr>		
		
		<tr>
			<td><?php echo $this->Form->input('direccion');?></td>
			<td><?php echo $this->Form->input('acudiente');?></td>
		</tr>
		<tr>
			<td><?php echo $this->Form->input('vive',array('label'=>'Vive con el estudiante'));?></td>
			<td><?php echo $this->Form->input('aporta',array('label'=>'Aporta Econ&oacute;micamente'));?></td>
		</tr>
	</table>	
	</fieldset>
<script>
$(function(){
	$('#parentesco').change(function(){
		if($('#parentesco').val()=='Otro'){			
			$("#otro_parentesco").attr("style","display:block");
		}else{
			$("#otro_parentesco").val();
			$("#otro_parentesco").attr("style","display:none");
		}
	});
});
</script>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>